﻿<!DOCTYPE html>
<html>
<head>
    <title>@ViewBag.Title</title>
        <link rel="shortcut icon" href="Content/images/favicon.ico" />
    <!-- Flower Jquery -->
    <script src="@Url.Content("~/Scripts/jquery.tools.min.js")" type="text/javascript"></script>
    <!-- End Flower jquery -->
    <!-- Main Css -->
    <link href="@Url.Content("~/Content/Site.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/themes/ui-lightness/jquery.ui.all.css")" rel="stylesheet" type="text/css" />
    <script src="@Url.Content("~/Scripts/jquery-1.6.2.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery-ui-1.8.11.min.js")" type="text/javascript"></script>
    <!-- End Main Css -->
    <!-- CKEDITOR --->
    <script src="@Url.Content("~/Content/ckeditor_3.6.1/ckeditor/ckeditor.js")" type="text/javascript"></script>
    <link href="@Url.Content("~/Content/ckeditor_3.6.1/ckeditor/contents.css")" rel="stylesheet" type="text/css" />
    <!-- END CKEDITOR --->
    <!-- Webgrid -->
    <script src="@Url.Content("~/Scripts/jquery.unobtrusive-ajax.js")" type="text/javascript"></script>
    <!-- Custom Css Shrek -->
    <link href="@Url.Content("~/Content/Custom.css")" rel="stylesheet" type="text/css" media="screen, projection" />
    <!--- End Custom Css --->
    <!-- BOOTSTRAP -->
    <link href="@Url.Content("~/Content/bootstrap.css")" rel="stylesheet" type="text/css" />
    <!-- BOOTSTRAP -->
    <!--CUSTOM JAVASCRIPT -->
    <script src="@Url.Content("~/Scripts/Filstartups.js")" type="text/javascript"></script>
    <!--- CUSTOM JAVASCRIPT --->
</head>
<body id="contentholder">
    <!-- HEADER -->
    <div class="topbar">
        <div class="fill">
            <div class="container">
                <a class="brand" href="#">Filstartups CMS</a>
                <ul class="nav">
                    @{
                
                        FormsIdentity id = (FormsIdentity)User.Identity;
                        FormsAuthenticationTicket ticket = id.Ticket;

                        if (ticket.UserData == "Administrator")
                        {
                        <li>@Html.ActionLink("Home", "Index", "Home")</li> 
                        <li>@Html.ActionLink("Category", "Index", "Category")</li>
                        <li>@Html.ActionLink("Post", "Index", "Post")</li>   
                        <li>@Html.ActionLink("Page", "Index", "Page")</li>
                        <li>@Html.ActionLink("User", "Index", "User")</li>
                        }
                        else
                        {
                        <li>@Html.ActionLink("Home", "Index", "Home")</li> 
                        <li>@Html.ActionLink("Category", "Index", "Category")</li>
                        <li>@Html.ActionLink("Post", "Index", "Post")</li>  
                        }
                        if (User.Identity.IsAuthenticated)
                        {
                        <li>@Html.ActionLink("Logout", "Logout", "Home")</li>     
                        }
                    }
                </ul>
            </div>
        </div>
    </div>
    <!-- END HEADER -->
    <div class="container">
        <div class="content">
            <div class="page-header">
                @RenderSection("Pagename", false)
            </div>
            @RenderBody()
        </div>
    </div>
    <footer>
        <p><center>&copy; FilStartUps 2011</center></p>
      </footer>
    <!-- -->
</body>
</html>
